home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Hot Mix 17
/
Hot Mix 17.iso
/
HM17_SGI
/
html
/
vendors
/
adobe
/
software
/
Removeill2.csh
< prev
next >
Wrap
Linux/UNIX/POSIX Shell Script
|
1997-06-17
|
2KB
|
79 lines
#! /bin/csh -f
#
set DFTTOPDIR=/usr/adobe/Illustrator_5.5
set PNAME=Illustrator_5.5
umask 022
# Abort installation if user not superuser
if (`whoami` != root) then
echo
echo "You must be logged in as root to install $PNAME."
echo "Type su and enter the password to become root."
goto ABORT
endif
BEGIN_SCRIPT:
/usr/bsd/clear
REMOVEAI:
echo
echo "*** Remove an installation of $PNAME ***"
echo ""
echo "Enter the Installation directory into which you"
echo "installed Adobe Illustrator"
echo -n "[press Enter for /usr/adobe]: "
set A = $<
if ( "$A" == "" ) then
set TOPDIR="$DFTTOPDIR"
set OTHERDIR=/usr/adobe
else
set TOPDIR="${A}/Illustrator_5.5"
set OTHERDIR="${A}"
endif
# Check if installation directory exists
if ( ! -e $TOPDIR ) then
echo
echo "$TOPDIR does not exist."
goto ABORT
endif
echo
echo -n "Removing $TOPDIR ..."
/bin/rm -rf $TOPDIR
if ( "$TOPDIR" == "$DFTTOPDIR") then
rmdir /usr/adobe
endif
echo "done"
if ( -d "$OTHERDIR/DPSNXBasic_2.1.1" ) then
echo -n "Remove directory $OTHERDIR/DPSNXBasic_2.1.1 (y/n)? \c"
set ans=($<)
if ( $ans != 'y' ) then
else
/bin/rm -rf $OTHERDIR/DPSNXBasic_2.1.1
echo done.
endif
endif
if ( -l /usr/bin/illustrator ) then
echo -n "Remove link /usr/bin/illustrator (y/n)? \c"
set ans=($<)
if ( $ans != 'y' ) then
echo " "
echo " "
echo "... Bye."
sleep 3
exit
else
/bin/rm -f /usr/bin/illustrator
endif
endif
echo "done"
sleep 10
exit 0
ABORT:
exit 1